<template>
    <div class="common-layout">
        <el-container>
            <el-header><my-header @clickFather="clickFather"></my-header></el-header>
            <el-container>
                <el-aside :width="isCollapse ? '60px' : '200px'"><my-aside :isCollapse="isCollapse"></my-aside></el-aside>
                <el-main>
                    <tag-menu></tag-menu>
                    <router-view></router-view>
                </el-main>
            </el-container>
        </el-container>
    </div>
</template>
  
<script setup>
    import MyHeader from '@/views/MyHeader.vue'
    import MyAside from '@/views/MyAside.vue'
    import TagMenu from '@/views/TagMenu.vue'
    import { ref } from 'vue'
    const isCollapse = ref(false)
    function clickFather(params) {
        isCollapse.value = params
    }
</script>

<style scoped>
.common-layout{
    height: 100%;
    .el-container{
        height: 100%;
    }
}

    .el-header{
        background-color: #fff;
    }

    .el-main{
        padding: 15px;
        background-color: lemonchiffon;
    }
</style>